package com.tc.zigbee.zcl;

import java.util.LinkedList;
import java.util.List;

import com.tc.util.DataUtil;
import com.tc.zigbee.zcl.command.DataValue;

public class ReportConfig {
	List<ReporterConfigurationRecord> records = new LinkedList<ReporterConfigurationRecord>();

	public List<ReporterConfigurationRecord> getRecords() {
		return records;
	}

	public byte[] frame() {
		int l = 0;
		for (ReporterConfigurationRecord r : records)
			l += r.length();
		byte[] data = new byte[l];
		l = 0;
		for (ReporterConfigurationRecord r : records)
			l += r.fill(data, l);
		return data;
	}
}
